If Mid(File1.Filename, (Len(File1.Filename) - 3), 4) = ".mid" Then
sndPlayM (File1.Path & "\" & File1.Filename)
ElseIf Mid(File1.Filename, (Len(File1.Filename) - 3), 4) = ".mp3" Then
sndPlayM (File1.Path & "\" & File1.Filename)
ElseIf Mid(File1.Filename, (Len(File1.Filename) - 4), 5) = ".mpeg" Then
sndPlayM (File1.Path & "\" & File1.Filename)
ElseIf Mid(File1.Filename, (Len(File1.Filename) - 3), 4) = ".wav" Then
sndPlayW (File1.Path & "\" & File1.Filename)
End If
End Sub
Public Sub sndStopM()
Call mciSendString("Stop MM", 0, 0, 0)
Call mciSendString("Close MM", 0, 0, 0)
End Sub
Private Sub cmdPause_Click()
sndPauseM
End Sub
Private Sub cmdPlay_Click()
sndStartM
End Sub
Private Sub cmdStop_Click()
sndStopM
End Sub
Private Sub Form_Load()
Call MsgBox("sndPlayer - By: Argonaut" & Chr(13) & Chr(13) & "This is a simple little app that" & Chr(13) & "will show you have to Start," & Chr(13) & "Pause and Stop different Media" & Chr(13) & "Files such as Midi's, Mpeg's," & Chr(13) & "Mp3's, and Wav's." & Chr(13) & "Everything is done by calls," & Chr(13) & "No more controls needed." & Chr(13) & "More stuff to come later." & Chr(13) & Chr(13) & "www.vbstuff.cjb.net", , "sndPlayer About")